import UIKit

var fruits = ["apple","banana","watermelon","tomato","orange","火龙果","葡萄","柚子"]

var num = Array(1...3)
var num1 = (4...7) + num
print(num1)

//删除指定位置
fruits.remove(at: 0)
print(fruits)
//删除区间元素
fruits.removeSubrange(0...1)
print(fruits)

//fruits.removeFirst()
//fruits.removeLast()
//fruits.removeAll()

//查找
fruits.contains("apple")
num1.first { item in
	item > 5
}
